package com.dao.company;

import com.domain.cargo.CountMoney;
import com.domain.company.Company;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CompanyDao {

    List<Company> findAll(@Param("page") Integer page, @Param("size") Integer size);

    Integer save(Company company);

    Integer delete(String id);

    Integer update(Company company);

    Company findById(String id);

    //查找所有的记录数
    Long findAllTotal();

    //定时统计
    List<CountMoney> countMoneyByFactory();

    void insertCount(CountMoney countMoney);
}
